package com.wtzz.police.base.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import javax.persistence.*;
import java.util.Date;

/**
 * 操作日志
 */
@Data
public class OperationLogDto {
    @ApiModelProperty("请求操作")
    private String operation;
    @ApiModelProperty("请求地址")
    private String url;
    @ApiModelProperty("请求IP")
    private String ip;
    @ApiModelProperty("请求用户名")
    private String username;
    @ApiModelProperty("请求用户ID")
    private String userId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
    @ApiModelProperty("创建时间")
    private Date createdDate = new Date();

}
